<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

//Route::middleware('auth:api')->get('/user', function (Request $request) {
//    return $request->user();
//});

//Route::any('userLogin', 'api\UserLoginController@userLogin');//用户登录
Route::get('loginFailure', 'api\UserLoginController@loginFailure');//非法访问
Route::any('notify', 'api\NotifyController@notify');//支付回调
Route::get('phpin', 'api\ComplaintController@phpinfo');
Route::any('userLogin', 'api\UserLoginController@userLogin');//明细
Route::get('tui', 'TixianController@tui');//退回定时任务



Route::group(['middleware' =>['api','token'],'namespace' => 'api'], function(){

Route::get('camelUserLogin', 'UserLoginController@camelUserLogin');//骆驼商城获取用户信息接口
Route::get('yue', 'UserLoginController@yue');//用户零钱查询
//语音红
Route::any('orderAdd', 'OrderController@orderAdd');//订单提交
Route::any('WePay', 'WePayController@WePay');//调起支付
Route::any('detail', 'ShareController@detail');//明细


Route::get('surplusMoney', 'WePayController@surplusMoney');//调取零钱
Route::any('voiceUpload', 'IndexController@voiceUpload');//语音上传
//Route::get('tixian', 'TixianController@tixian');//企业付款到零钱

Route::any('voiceLoad', 'IndexController@voiceLoad');//语音加载
Route::any('record', 'IndexController@record');//语音上传
Route::get('complaintAdd', 'ComplaintController@complaintAdd');//投诉意见

Route::get('camelUserAdd', 'CamelUserLoginController@camelUserAdd');//获取骆驼用户信息并添加到数据库

Route::get('myReds', 'IndexController@myReds');//我收到的红包
Route::get('myRedf', 'IndexController@myRedf');//我发出的红包
Route::get('kou', 'TixianController@kouling');//动态口令

//猜对有钱
Route::any('cdvoiceLoad', 'GuessMoneyController@voiceLoad');//语音加载
Route::any('cdvoiceUpload', 'GuessMoneyController@voiceUpload');//语音上传
Route::any('cdrecord', 'GuessMoneyController@record');//语音上传
Route::get('cdmyReds', 'GuessMoneyController@myReds');//我收到的红包
Route::get('cdmyRedf', 'GuessMoneyController@myRedf');//我发出的红包


Route::any('luck_value', 'LuckController@luck_value');    // 领取幸运值
Route::any('check_sign', 'LuckController@check_sign');    // 领取幸运值

Route::get('phpinfo', 'ComplaintController@phpinfo');//phpinfo

Route::any("share",'ShareController@listAll');
Route::any("mRanking",'RankingController@rankingList');
Route::any("lRanking",'RankingController@lRankingList');


Route::any("luckmoney",'LuckMoneyController@index'); // 显示
Route::any("luckoneyAdd",'LuckMoneyController@luck_money_add'); // 拆现金红包
Route::any("activityInfo",'LuckMoneyController@get_activity_info');//获取活动规则

});